//package com.macro.mall.tiny.filter.xss;
//
//import jakarta.servlet.*;
//import jakarta.servlet.http.HttpServletRequest;
//
//import java.io.IOException;
//
///**
// * @author: i_kun
// * @Desc: o_。
// * @create: 2025-06-30 09:30
// */
//
//public class XssFilter implements Filter{
//    @Override
//    public void init(FilterConfig filterConfig) throws ServletException {
//        // 初始化操作
//    }
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
//            throws IOException, ServletException {
//        HttpServletRequest httpRequest = (HttpServletRequest) request;
//        XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper(httpRequest);
//        chain.doFilter(xssRequest, response);
//    }
//
//    @Override
//    public void destroy() {
//        // 销毁操作
//    }
//}
